home *** CD-ROM | disk | FTP | other *** search
- # CVS $Id: focus3.tcl,v 1.3 1995/02/03 16:54:40 zibi Exp $
- # Simple test
-
- # simple file selector - should ask for a URL
- proc OpenCB {cbs} {
- set fd [ VtFileSelectionDialog filesel -title "Open" ]
- VtShowDialog $fd
- }
-
-
- set app [VtOpen chelp]
- set form [VtFormDialog $app.form -help -title "WWW Viewer"]
- set mb [VtMenuBar $form.mb]
-
- set filem [VtPulldown $mb.filem -label "File"]
- VtPushButton $filem.open -label "Open..." -callback OpenCB
- VtPushButton $filem.exit -label "Exit" -callback "VtClose"
- set optionm [VtPulldown $mb.optionm -label "Options"]
- VtPushButton $optionm.cgh -label "Clear Global History..."
- VtSeparator $optionm.sep
- VtPushButton $optionm.adda -label "Add Annotation..."
- set label [VtLabel $form.label -label "Document Title" -topSide $mb]
- set text1 [VtText $form.text1 -value "focus3.tcl" -columns 60 -readOnly]
- set text2 [VtText $form.text2 -rows 15 -columns 70 -readOnly \
- -value "blah"]
- VtShow $form
- VtSetFocus $text2
- VtMainLoop
-